using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._ConversionTools._ToGeodatabase
{
    /// <summary>
    /// <para>Table To Geodatabase</para>
    /// <para>Converts one or more tables to geodatabase tables in an output geodatabase. The inputs can be dBASE, INFO, VPF, OLE DB tables, geodatabase tables, or table views.</para>
    /// <para>将一个或多个表转换为输出地理数据库中的地理数据库表。输入可以是 dBASE、INFO、VPF、OLE DB 表、地理数据库表或表视图。</para>
    /// </summary>    
    [DisplayName("Table To Geodatabase")]
    public class TableToGeodatabase : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public TableToGeodatabase()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_Input_Table">
        /// <para>Input Table</para>
        /// <para>The list of tables to be converted to geodatabase tables. Input tables can be INFO, dBASE, OLE DB, geodatabase tables, or table views.</para>
        /// <para>要转换为地理数据库表的表列表。输入表可以是 INFO、dBASE、OLE DB、地理数据库表或表视图。</para>
        /// </param>
        /// <param name="_Output_Geodatabase">
        /// <para>Output Geodatabase</para>
        /// <para>The destination geodatabase where the tables will be placed.</para>
        /// <para>将放置表的目标地理数据库。</para>
        /// </param>
        public TableToGeodatabase(List<object> _Input_Table, object _Output_Geodatabase)
        {
            this._Input_Table = _Input_Table;
            this._Output_Geodatabase = _Output_Geodatabase;
        }
        public override string ToolboxName => "Conversion Tools";

        public override string ToolName => "Table To Geodatabase";

        public override string CallName => "conversion.TableToGeodatabase";

        public override List<string> AcceptEnvironments => ["configKeyword", "extent", "qualifiedFieldNames", "scratchWorkspace", "workspace"];

        public override object[] ParameterInfo => [_Input_Table, _Output_Geodatabase, _Derived_Geodatabase];

        /// <summary>
        /// <para>Input Table</para>
        /// <para>The list of tables to be converted to geodatabase tables. Input tables can be INFO, dBASE, OLE DB, geodatabase tables, or table views.</para>
        /// <para>要转换为地理数据库表的表列表。输入表可以是 INFO、dBASE、OLE DB、地理数据库表或表视图。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Table")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _Input_Table { get; set; }


        /// <summary>
        /// <para>Output Geodatabase</para>
        /// <para>The destination geodatabase where the tables will be placed.</para>
        /// <para>将放置表的目标地理数据库。</para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Geodatabase")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _Output_Geodatabase { get; set; }


        /// <summary>
        /// <para>Updated Geodatabase</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Updated Geodatabase")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _Derived_Geodatabase { get; set; }


        public TableToGeodatabase SetEnv(object configKeyword = null, object extent = null, bool? qualifiedFieldNames = null, object scratchWorkspace = null, object workspace = null)
        {
            base.SetEnv(configKeyword: configKeyword, extent: extent, qualifiedFieldNames: qualifiedFieldNames, scratchWorkspace: scratchWorkspace, workspace: workspace);
            return this;
        }

    }

}